<?php

namespace app\admin\validate;

use think\Validate;

class Company extends Validate {

    /**
     * 验证规则
     */
    protected $rule = [
        'title' => 'require|max:32|unique:company',
        'name' => 'require|max:16',
        'province_id' => 'require|number',
        'city_id' => 'require|number',
        'country_id' => 'require|number',
        'address' => 'require|max:255',
        'tel' => 'require',
        'technology' => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add' => [],
        'edit' => [],
    ];

}
